package com.mdd.product.validate.category;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.io.Serializable;

@Data
@ApiModel("行业类别创建参数")
public class CategoryEmploymentCreateValidate implements Serializable {

    private static final long serialVersionUID = 1L;

    @NotNull(message = "pId参数缺失")
    @ApiModelProperty(value = "父类别")
    private Long pId;

    @NotNull(message = "name参数缺失")
    @ApiModelProperty(value = "类目")
    private String name;

    @NotNull(message = "level参数缺失")
    @ApiModelProperty(value = "级别")
    private Long level;

    @NotNull(message = "status参数缺失")
    @ApiModelProperty(value = "状态")
    private Integer status;

}
